package com.home.webapp.base.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;


/**
 * Description: 权限下发
 * Created by 王大宸 on 2020-10-05 23:28:38
 * Created with IntelliJ IDEA.
 */
@Table(name = "base_perms_auth")
public class BasePermsAuth implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    private String id;


    /**
     * 用户id
     */
    @Column(name = "user_id")
    private String userId;


    /**
     * 菜单id
     */
    @Column(name = "menu_id")
    private String menuId;


    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserId() {
        return userId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getMenuId() {
        return menuId;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("menuId", getMenuId())
                .toString();
    }

}
